Skip to main content

stackFileType

Type

property

Summary

Specifies the creator signature and file type for saved stack files.

Syntax

set the stackFileType to <creator> & <type>

Description

Use the stackFileType property to ensure that stacks that a standalone application creates are recognized by the operating system as belonging to the standalone.

When a file is saved on a Mac OS system, a 4-character file type and 4-character creator signature are saved with it. The creator signature specifies which application owns the file, and the file type is used to determine which applications (other than the owner) can work with the file.

note

LiveCode's creator signature is 'Revo'. The file type for a stack file created by LiveCode is 'RSTK'.

The stackFileType property is used to set the type signature|file type and creator for stack files your application creates with the save command. (To specify the file type and creator for files created by the open file command or by putting data into a file, binfile, or resfile URL that doesn't yet exist, use the fileType property instead.)

The setting of this property has no effect on Unix and Windows systems.

Important

To avoid conflicts with other applications, register any new creator signatures with Apple Computer if you plan to distribute a stack or standalone application that uses this property.

Examples

set the stackFileType to "myapSTCK"

object: stack

property: fileType

command: create stack, save, open file

function: stacks, files

glossary: property, stack file, creator signature, type signature, standalone application, command

keyword: binfile, file, URL, characters, character, resfile

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?